package org.finesys.common.disruptor.event.translator;

import com.lmax.disruptor.EventTranslatorThreeArg;
import org.finesys.common.disruptor.event.DisruptorEvent;

public class DisruptorEventThreeArgTranslator implements EventTranslatorThreeArg<DisruptorEvent, String, String, String> {

    @Override
    public void translateTo(DisruptorEvent disruptorEvent, long sequence, String tag, String key, String body) {
        disruptorEvent.setTag(tag);
        disruptorEvent.setKey(key);
        disruptorEvent.setBody(body);
    }
}
